#ifndef DAYRECORD_H
#define DAYRECORD_H

#include <QMainWindow>
#include <QDesktopWidget>
#include <QSplitter>

#include "DRDBSupport.h"
#include "DRWidgetLeft.h"
#include "DRWidgetRight.h"

namespace Ui {
class DayRecord;
}

class DayRecord : public QMainWindow
{
    Q_OBJECT

public:
    explicit DayRecord(QWidget *parent = 0);
    ~DayRecord();

private slots:
    void onMove(int, int y);
    void onMaximum(bool current);
    void onMinimum();

public slots:
    void onSearchGroup(QString);
    void onSearchRecord(QString);
    void onDeleteGroup(int);
    void onDeleteRecord(int);
    void onAddRecord(int groupIndex);

private:
    Ui::DayRecord *ui;
    QSplitter *splitter;
    DRWidgetLeft  *leftWindow;
    DRWidgetRight *rightWindow;

    DRDBSupport *dbSupport;
};

#endif // DAYRECORD_H
